package com.gameShare.mappers.user

import org.apache.ibatis.annotations.Param


interface UserLikeMapper {

    fun insert(
        @Param("gameId") gameId: String,
        @Param("commentId") commentId: Int,
        @Param("userId") userId: String
    ): Int

    fun updateActiveStatus(
        @Param("isActive") isActive : Int,
        @Param("gameId") gameId: String,
        @Param("commentId") commentId: Int,
        @Param("userId") userId: String
    ): Int

    fun checkUserLike(
        @Param("gameId") gameId : String,
        @Param("commentId") commentId: Int,
        @Param("userId") userId: String,
        @Param("isActive") isActive: Int
    ) : Int

    fun selectUserAllLikeCommentInGame(
        @Param("gameId") gameId: String,
        @Param("userId") userId: String
    ) : List<String>
}